package com.bawei.mvvm.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "banner")
data class BannerData(
    @ColumnInfo(name = "id", typeAffinity = ColumnInfo.INTEGER)
    @PrimaryKey
    val id: Int,
    @ColumnInfo(name = "desc", typeAffinity = ColumnInfo.TEXT)
    val desc: String,
    @ColumnInfo(name = "imagePath", typeAffinity = ColumnInfo.TEXT)
    val imagePath: String,
    @ColumnInfo(name = "isVisible", typeAffinity = ColumnInfo.INTEGER)
    val isVisible: Int,
    @ColumnInfo(name = "order", typeAffinity = ColumnInfo.INTEGER)
    val order: Int
)